#ifndef __AILAYER_H__
#define __AILAYER_H__
#include "cocos2d.h"
#include "gamemain.h"
class AILayer:public GameMain
{
public:
	virtual bool init();
	void onEnter();
	void onExit();
	LAYER_CREATE_FUNC(AILayer);
	void autoMakeLine(float ft);
	virtual cocos2d::CCPoint setIndexToPoint(cocos2d::CCPoint orgin);
	virtual void step(float ft);
	void playerWin(cocos2d::CCObject *sender);
	void computerWin(cocos2d::CCObject *sender);
	void particleCallBack(CCNode *pSender);
	int randomTimeOfComputerThink();
};
#endif